#include "dogservice.h"

#include "dogservice_impl.h"

DogService::DogService()
    :_pImpl(new DogServiceImpl())
{
}

DogService::~DogService()
{
    delete _pImpl;
}

int DogService::start()
{
    return (int)_pImpl->start();
}

void DogService::stop()
{
    _pImpl->stop();
}

std::string DogService::getMemoryInfo()
{
    return _pImpl->getMemoryData();
}

void DogService::checkDogExpireDate(void(*cb)(int))
{
    _pImpl->checkDogExpireDate(cb);
}

int DogService::getDogExpireDateStatus()
{
    return (int)_pImpl->getDogExpireDateStatus();
}

void DogService::setTimerInterval(int interval, int expDateinterval)
{
    _pImpl->setTimerInterval(interval, expDateinterval);
}

int DogService::getDogStatus()
{
    return (int)_pImpl->getDogStatus();
}

void DogService::checkDogStatus(void(*cb)(int))
{
    _pImpl->checkDogStatus(cb);
}

bool DogService::getCheckExpDateFlag()
{
    return _pImpl->getCheckExpDateFlag();
}